<?php

namespace App\Models\Factory\Mssql;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class Region extends Model
{
    use HasFactory;
    public $timestamps = FALSE;
    protected $table = 'Region';
    protected $fillable = ['ID', 'RegionName', 'uploadstate', 'RegionCode'];

    public function __construct(array $attributes = [])
    {
        parent::__construct($attributes);
    }

    public function insertOne($params){
        return self::create($params);
    }

    public function insertMany($params){
        return self::insert($params);
    }

    public function findAll(){
        return self::get();
    }
}
